#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main()
{
	int a=0, n=0;
	int sum = 0;
	scanf("%d %d", &a, &n);
	for (; n > 0; n--)
	{
		sum += a * 10 + a;
		a = a * 10;
	}
	printf("%d", sum);
}















